<tr class='prop'>
  <td valign='top' class='name'><label for='username'>Username:</label></td>
  <td valign='top' class='value ${hasErrors(bean:user,field:'username','errors')}'>
    <gui:toolTip text="This field is required if this user is a user of the system.">
      <input type="text" name='username' value="${user?.username?.encodeAsHTML()}"/>
    </gui:toolTip>
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name"><label for="pass">Password:</label></td>
  <td valign="top" class="value ${hasErrors(bean:user,field:'pass','errors')}">
    <input type="password" id="pass" name="pass" autocomplete="off" />
  </td>
</tr>
<tr class="prop">
  <td valign="top" class="name"><label for="confirmPass">Confirm Password:</label></td>
  <td valign="top" class="value ${hasErrors(bean:user,field:'confirmPass','errors')}">
    <input type="password" id="confirmPass" name="confirmPass" autocomplete="off" />
  </td>
</tr>
<g:ifAnyGranted role="ROLE_ADMIN,ROLE_POWER_USER">
  <tr class="prop">
    <td valign="top" class="name"><label for="enabled">Enabled:</label></td>
    <td valign="top" class="value ${hasErrors(bean:user,field:'enabled','errors')}">
      <g:checkBox name="enabled" value="${user.enabled}" />
    </td>
  </tr>
</g:ifAnyGranted>
<tr class="prop">
  <td valign="top" class="name"><label for="roles">System Roles:</label></td>
  <td valign="top" class="value ${hasErrors(bean:user,field:'roles','errors')}">
    <g:if test="${roleMap}">
      <g:each in="${roleMap}">
        <g:checkBox name="${it.key.authority}" value="${it.value}" />
        ${it.key.description}<br />
      </g:each>
    </g:if>
  </td>
</tr>
